Skip to content

Conversation

@Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Jun 17, 2025

I was using a condition a bit dirty to check whether the HF_TOKEN or the provider token should be used (based on presence of https:// in the example). This PR makes the condition more robust by checking the presence of InferenceClient instead.

Expectation: https://huggingface.co/Qwen/Qwen2.5-VL-32B-Instruct?inference_api=true&inference_provider=fireworks-ai&language=python should use HF_TOKEN instead of api_key=os.environ["FIREWORKS_AI_API_KEY"],.

thanks @Vaibhavs10 for flagging (private slack)

@Wauplin Wauplin merged commit 900a895 into main Jun 17, 2025
5 checks passed
@Wauplin Wauplin deleted the fix-snippets-hf-token-not-used branch June 17, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants